package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品评论表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("product_comment")
public class ProductComment implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "评论id,，主键，自增")
      @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    //@ApiModelProperty(value = "评论用户id")
    private Integer consumerId;

    //@ApiModelProperty(value = "商品id")
    private Integer productId;

    //@ApiModelProperty(value = "订单id")
    private Integer orderId;

    //@ApiModelProperty(value = "评论内容")
    private String content;

    //@ApiModelProperty(value = "评论图片")
    private String pictureUrl;

    //@ApiModelProperty(value = "评论时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(exist = false)
    private Consumer consumer;


}
